Skip to content

fix: prevent duplicate repo list rendering on mobile#330

Merged
ping-maxwell merged 2 commits intobetter-auth:mainfrom
AbhiVarde:fix/user-profile-repo-list-duplicate
Apr 7, 2026
Merged

fix: prevent duplicate repo list rendering on mobile#330
ping-maxwell merged 2 commits intobetter-auth:mainfrom
AbhiVarde:fix/user-profile-repo-list-duplicate

Conversation

@AbhiVarde
Copy link
Copy Markdown
Contributor

Problem

On mobile devices, each repository in the user profile repo list was rendering twice once for the mobile layout and once for the desktop layout stacked on top of each other.

Root Cause

PR #305 changed hidden sm:contents to contents on the desktop layout wrapper which made it visible on all screen sizes including mobile, causing both the mobile and desktop layouts to render simultaneously.

Solution

Reverted the desktop layout wrapper back to hidden sm:contents so it is hidden below sm and only renders from sm+ via display: contents. The mobile layout flex sm:hidden handles everything below sm with no overlap.

Files Changed

  • apps/web/src/components/users/user-profile-content.tsx

Screenshots

Before After

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 21, 2026

@AbhiVarde is attempting to deploy a commit to the better-auth Team on Vercel.

A member of the Team first needs to authorize it.

@ping-maxwell ping-maxwell merged commit a7179ef into better-auth:main Apr 7, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants